package com.tuanzi.loan.business.entity.settlement;

import java.util.Date;

import javax.persistence.*;
import javax.validation.constraints.NotNull;

import com.tuanzi.loan.core.entity.AuditEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author caiwanlin
 * @create 2018-01-16 16:01
 */
@Data
@Entity
@EqualsAndHashCode(callSuper = true)
@Table(name = "loan_settlement_price_change_record")
public class SettlementPriceChangeRecord extends AuditEntity {
    private static final long serialVersionUID = 5699907537077200835L;

    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    @Column(name = "company_name")
    private String companyName;

    @Column(name = "product_name")
    private String productName;
    
    @Column(name = "cop_mode")
    private  Integer copMode;


    @Column(name = "new_cop_mode")
    private  Integer newCopMode;

    @Column(name = "old_percent_price")
    private Float oldPercentPrice;

    @Column(name = "new_percent_price")
    private Float newPercentPrice;

    @Column(name = "old_yuan_price")
    private Float oldYuanPrice;

    @Column(name = "new_yuan_price")
    private Float newYuanPrice;

    @NotNull
    @Column(name = "effective_time")
    private Date effectiveTime;//生效时间

    @Column(name = "company_id")
    private Long companyId;
}
